import request from '../request.js'
// 大成列表
export function dacheng_list(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/dachengzhidao", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}


// 大成互动列表
export function dacheng_hudong(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/hudong", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}


// 大成互动回复
export function dacheng_pinglun(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/kecheng/pinglun", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 大成互动二级(奥义大成通用)
export function dacheng_hudong_c(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/hudong_c", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 大成互动二级(奥义大成通用) http://192.168.0.139:263/api/kecheng/dianzan
export function dianzan(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/dianzan", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 大成互动二级(奥义大成通用) http://192.168.0.139:263/api/kecheng/collect
export function shoucang(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/collect", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}